<script>
	import Amap from './utlis/amap-wx'
	export default {
		onLaunch: function() {
			// 实例化API核心类
			// let initAmapData = new Amap.AMapWX({
			// 	key: 'e7b185f0ab2af78680dea5db822b011a',
			// });
			// initAmapData.getRegeo({
			// 	iconPath: "",
			// 	iconWidth: 22,
			// 	iconHeight: 32,
			// 	success: data => {
			// 		console.log('app定位数据',data);
			// 		this.$u.vuex("isAuth",true)
			// 		this.$u.vuex("currentLocation",data[0])
			// 	},
			// 	fail: info => {
			// 		this.$u.vuex("isAuth",false)
			// 	}
			// })
		},
		onShow: function() {
			console.log('App Show')
		},
		onReady() {
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	
	@import "uview-ui/index.scss";
	
	page{
		width: 100%;
		min-height: 100%;
		
		background-image: url('https://jiudao123.oss-cn-shanghai.aliyuncs.com/store/img/bg.png') !important;
		background-size: cover; //覆盖整个页面
		background-repeat: no-repeat; //不重复
		// background-color: red; 
	}

</style>
